local extension = Package:new("ym_derived", Package.CardPack)
extension.extensionName = "ym_Al"

extension:loadSkillSkelsByPath("./packages/ym_Al/pkg/ym_derived/skills")

Fk:loadTranslationTable{
    ["ym_derived"] = "佚名卡牌",
}
local life_death = fk.CreateCard{
    name = "&ym__life_death",
    type = Card.TypeTrick,
    skill = "ym__life_death_skill",
}
Fk:loadTranslationTable{
    ["ym__life_death"] = "你死我活",
    [":ym__life_death"] = "锦囊牌<br/>"..
    "<b>时机</b>：出牌阶段<br/>"..
    "<b>目标</b>：你<br/>"..
    "<b>效果</b>：目标以外的角色开始“乱武”（对距离最近角色用【杀】或失去一点体力），直到有角色死亡。（此牌不可响应）",

    ["ym__life_death_skill"] = "你死我活",
    ["#ym__life_death_skill"] = "令所有角色开始“乱武”（选择使用【杀】或失去体力）",
    ["#luanwu-use"] = "乱武：你需要对距离最近的一名角色使用一张【杀】，否则失去1点体力",
}
extension:addCardSpec("ym__life_death",Card.Diamond,13)
extension:addCardSpec("ym__life_death",Card.Club,13)
extension:addCardSpec("ym__life_death",Card.Spade,13)
extension:addCardSpec("ym__life_death",Card.Heart,13)

local breastplate = fk.CreateCard{
    name = "&ym__breastplate",
    type = Card.TypeEquip,
    sub_type = Card.SubtypeArmor,
    equip_skill = "#ym__breastplate_skill",
    special_skills = {"#ym__put_equip"},
}
Fk:loadTranslationTable{
    ["ym__breastplate"] = "护心镜",
    [":ym__breastplate"] = "装备牌·防具<br/>"..
    "<b>防具技能</b>：当你受到大于1点的伤害或致命伤害时，你可以将装备区里的【护心镜】置入弃牌堆，防止此伤害。",

    ["ym__life_death_skill"] = "你死我活",
    ["#ym__life_death_skill"] = "令所有角色开始“乱武”（选择使用【杀】或失去体力）",
    ["#luanwu-use"] = "乱武：你需要对距离最近的一名角色使用一张【杀】，否则失去1点体力",
}
extension:addCardSpec("ym__breastplate",Card.suit,1)
extension:loadCardSkels {
    life_death,
    breastplate,
}

return extension